<?php

namespace Platform\Libs;

include_once PLATFROM_LIB_PATH . 'WxPayQMZF/lib/WxPayNotify.php';

class WxPayQMZF {

    public function verifyNotify() {
        $WxPay = new \WxPayNotify();
        $verify_result = $WxPay->Handle(FALSE);
        return $verify_result;
    }

    public function unifiedorder($openId, $orderNo, $totalFee,$notify_url , $body ) {
        $WxPay = new \WxPayNotify();
        $verify_result = $WxPay->unifiedorder($openId, $orderNo, $totalFee,$notify_url , $body );
        return $verify_result;
    }

    public function createPaySign($result) {
        $WxPay = new \WxPayNotify();
        $paySign = $WxPay->createPaySign($result);
        return $paySign;
    }

    public function enterprisePayment($openId, $tradeNo, $money) {
        $WxPay = new \WxPayNotify();
        $result = $WxPay->enterprisePayment($openId, $tradeNo, $money);
        return $result;
    }

}
